const express = require('express')

const router = express.Router()

const router_handler = require('../router_handler/groupchat.js')

// 群组 - 创建
router.post('/create', router_handler.createGroup)

// 群组 - 搜索
router.get('/search', router_handler.searchGroup)

// 群组 - 加入
router.post('/join', router_handler.joinGroup)

// 群组 - 删除
router.post('/del', router_handler.delGroup)

// 群组 - 已加入
router.get('/added', router_handler.addedGroup)

module.exports = router